// 配送区域管理
import request from '@/utils/request'
const LocationManagement = {
  //分页条件查询
  queryPageByCondition (data) {
    return request({
      url: '/shop/deliveryArea/queryPageByCondition',
      method: 'post',
      data
    })
  },
  //条件查询
  queryByCondition (data) {
    return request({
      url: '/shop/deliveryArea/queryByCondition',
      method: 'post',
      data
    })
  },
  //新增
  add (data) {
    return request({
      url: '/shop/deliveryArea/add',
      method: 'post',
      data
    })
  },
  //编辑
  edit (data) {
    return request({
      url: '/shop/deliveryArea/edit',
      method: 'put',
      data
    })
  },
  //删除
  del (id) {
    return request({
      url: `/shop/deliveryArea/del?id=${id}`,
      method: 'delete'
    })
  },
  //批量删除
  delList (idlist) {
    return request({
      url: `/shop/deliveryArea/delList?idList=${idlist}`,
      method: 'delete',
    })
  }
}
export default LocationManagement




